package com.itc.system.mapper;

import com.itc.system.api.domain.SysDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author wangjinxia
* @description 针对表【sys_dept(部门表)】的数据库操作Mapper
* @createDate 2024-05-10 15:53:30
* @Entity com.itc.system.api.domain.SysDept
*/
public interface SysDeptMapper extends BaseMapper<SysDept> {
    /**
     * 是否存在子节点
     *
     * @param deptId 部门ID
     * @return 结果
     */
    public int hasChildByDeptId(Long deptId);

    List<Long> getSeatIdsByDeptIds(@Param(value = "deptIds") List<Long> deptIds);

    List<SysDept> getSeatInfosByDeptIds(@Param(value = "deptIds") List<Long> deptIds);
}




